<template>
    <div>
        vueAdmin后台管理
        <div class="header_avatar">
            <el-avatar size="medium" :src="circleUrl"></el-avatar>
            <el-dropdown>
                <span class="el-dropdown-link">
                    admin<i class="el-icon-arrow-down el-icon--right"></i>
                </span>
                <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item>个人中心</el-dropdown-item>
                    <el-dropdown-item>退出</el-dropdown-item>
                </el-dropdown-menu>
            </el-dropdown>
            <el-link href="https://www.baidu.com" target="_blank">百度</el-link>

        </div>
    </div>
</template>
<script>
    export default{
        data () {
            return {
                circleUrl: "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
            }
        }
    }
</script>
<style>
    .header_avatar {
        float: right;
        width: 230px;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }

    .el-header {
        background-color: #B3C0D1;
        color: #333;
        text-align: center;
        line-height: 60px;
    }

    .el-aside {
        background-color: #D3DCE6;
        color: #333;
        line-height: 200px;
    }

    .el-menu {
        height: 100%;
    }

    .el-main {
        background-color: #E9EEF3;
        color: #333;
        text-align: center;
        line-height: 160px;
    }

    body>.el-container {
        margin-bottom: 40px;
    }

    .el-container:nth-child(5) .el-aside,
    .el-container:nth-child(6) .el-aside {
        line-height: 260px;
    }

    .el-container:nth-child(7) .el-aside {
        line-height: 320px;
    }

    * {
        margin: 0;
        padding: 0;
    }

    .el-container {
        height: 100%;
    }
</style>